<template>
  <!-- 弹出框中的历史和热门 -->
  <div>
    <!-- 历史记录 -->
    <div class="his-hot">
      <div class="hd">
        <h4>历史记录</h4>
        <van-icon name="delete-o" />
      </div>
      <div class="db">
        <van-tag
          plain
          type="default"
          v-for="(e, i) in historyListData"
          :key="i"
          >{{ e }}</van-tag
        >
      </div>
    </div>
    <!-- 热门搜索 -->
    <div class="his-hot">
      <div class="hd">
        <h4>热门搜索</h4>
      </div>
      <div class="db">
        <van-tag
          :type="e.is_hot ? 'danger ' : 'default'"
          plain
          v-for="(e, i) in hotKeywordListData"
          :key="i"
          >{{ e.keyword }}</van-tag
        >
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  //   设置标签属性
  props: ["hotKeywordListData", "historyListData"],
};
</script>
 
<style lang = "less" scoped>
.his-hot {
  background-color: #fff;
  padding: 0.1rem;
  padding-bottom: 0;
  margin-bottom: 0.2rem;
  .hd {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.1rem;
    font-size: 0.2rem;
    .van-icon {
      font-size: 0.24rem;
    }
  }
  .van-tag {
    margin: 0 0.1rem 0.1rem 0;
    padding: 0.01rem 0.03rem;
  }
}
</style>